package com.zzb.ucenter.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author zzb
 * @Date 2024/6/25 17:55
 * @Version 1.0
 * @description
 */
@Repository
@FeignClient(value = "checkcode")
public interface CheckCodeFeign {
    /**
     * 验证码校验
     * @param key
     * @param code
     * @return
     */
    @PostMapping("/checkcode/verify")
    Boolean verify(@RequestParam String key, @RequestParam String code);
}
